page{
  background-color: #666666;
}
/*外部公共容器样式*/
.flex-container {
  display: flex;
  margin-top: 40vh;
  height: 60vh;
  // background-color: #fff;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
}

.dice-box {
  padding: 0px;
}

.second-row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* 骰子容器公用样式 */
.face {
  display: flex;
  margin: 1vw;
  padding: 1vw;
  background-color: #ffffff;
  width: 8vh;
  height: 8vh;
  object-fit: contain;
  border-radius: 10%;
  box-shadow: inset 0 5px white,
    inset 0 -5px #bbb,
    inset 5px 0 #d7d7d7,
    inset -5px 0 #d7d7d7;
}


/* 筛子中的点的样式 */
.pip {
  display: block;
  width: 2vh;
  height: 2vh;
  border-radius: 50%;
  margin: 0.5vw;
  background-color: #333;
  box-shadow: inset 0 3px #111,
    inset 0 -3px #555;
}

.pipOne {
  display: block;
  width: 2vh;
  height: 2vh;
  border-radius: 50%;
  margin: 4px;
  background-color: rgb(255, 0, 0);
  box-shadow: inset 0 3px rgb(255, 0, 0),
    inset 0 -3px rgb(255, 0, 0);
}

/* 面公用样式 */


/* 第一面布局方式：元素水平居中且垂直居中 */
.first {
  justify-content: center;
  align-items: center;
}

/* 第二面布局方式 */
.second {
  justify-content: space-between;
}

/* 右对齐 */
.second .pip:last-child {
  align-self: flex-end;
}

/* 第三面布局方式 */
.third {
  justify-content: space-between;
}

.third .pip.third-item-center {
  align-self: center;
}

.third .pip:last-child {
  align-self: flex-end;
}


/* 第四面布局方式 */
.fourth {
  justify-content: space-between;
}

.fourth .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 第五面布局方式 */
.fifth {
  justify-content: space-between;
}

.fifth .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fifth .column.fifth-column-center {
  justify-content: center;
}

/* 第六面布局方式 */
.sixth {
  justify-content: space-between;
}

.sixth .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.button-box {
  padding-top: 3vh;
  padding-bottom: 3vh;
  width: 80%;
  margin: 0 auto;
}

.circle {
  height: 14vh;
  width: 14vh;
  text-align: center;
  line-height: 14vh;
  font-size: 4vh;
  font-family: 'Times New Roman', Times, serif;
  color: rgb(0, 0, 0);
  display: inline-block;
  border-radius: 50%;
  margin-left: 20%;
}

.stop {
  height: 10vh;
  width: 10vh;
  text-align: center;
  line-height: 10vh;
  font-size: 3vh;
  margin-left: 10vw;
  font-family: 'Times New Roman', Times, serif;
  color: rgb(0, 0, 0);
  display: inline-block;
  border-radius: 50%;
}

//骰子壶
movable-area {
  position: absolute;
  top: 0%;
  left: 15vw;
  width: 100%;
  height: 75vh;
}

movable-view {
  width: fit-content;
  height: fit-content;
}

.diceBackBox {
  width: 70vw;
  height: 38vh;
  background:#111;
  border-radius: 50% 50% 5% 5%;
}
.diceBoxBottom{
  width: 90%;
  height: 50px;
  background-color: #111;
  border-radius: 10% 10% 90% 90%;
}
.shakeAnimation{
  animation: shake 1.4s linear infinite;
}

//摇晃动画
@keyframes shake {
  10% {
    transform: rotate(30deg);
  }

  20% {
    transform: rotate(-20deg);
  }

  30% {
    transform: rotate(20deg);
  }

  40% {
    transform: rotate(-30deg);
  }

  50%,
  100% {
    transform: rotate(0deg);
  }
}